"use strict";
cc._RF.push(module, '105653GKLxI9auJohQEY2hC', 'gameNetWorkState');
// Script/SdkTools/gameNetWorkState.ts

"use strict";
/**
 * 服务器 网络控制
 * 可根据自己的条件自己去配置
 * 不配置不影响游戏功能
 *
 * 一般不用管该文件
 */
Object.defineProperty(exports, "__esModule", { value: true });
var gameShareAdsVideo_1 = require("./gameShareAdsVideo");
var gameNetWorkState = /** @class */ (function () {
    function gameNetWorkState() {
        this.url = '';
        this.openData = null;
        this.isget = false;
        this.nextLevelBtnClicked = 0;
        this.messagetime = 0;
    }
    Object.defineProperty(gameNetWorkState, "Instance", {
        get: function () {
            if (null == this._instance) {
                this._instance = new gameNetWorkState();
            }
            return this._instance;
        },
        enumerable: false,
        configurable: true
    });
    gameNetWorkState.prototype.getPlatformClass = function () {
        return gameShareAdsVideo_1.default.Instance.getPlatformClass();
    };
    /**
     * 获取是否是抖音视频详情或评论 进入的用户
     */
    gameNetWorkState.prototype.getIsShiPingCome = function () {
        return false;
    };
    gameNetWorkState.prototype.getGameOpenState = function (callBack) {
        return callBack(), this.noNetWork();
    };
    gameNetWorkState.prototype.noNetWork = function () {
        //scene=false auto=false show=false
        var responsedata = { auto: false, show: false, scene: false, open: false }; //JSON.parse(response)
        this.openData = responsedata;
        this.openData.open = false;
        //console.log('打印控制数据', window.openData)
    };
    gameNetWorkState.prototype.getShow = function () {
        return false;
    };
    gameNetWorkState.prototype.getTuiGuang = function () {
        return false;
    };
    /**
     * 获取场景控制  scene ，控制是否受咱的控制影响，scene=true非抖音视频页进来的，受控制，scene=false，进入审核版
     */
    gameNetWorkState.prototype.getScene = function () {
        return false;
    };
    //获取force 字段换成了 auto
    gameNetWorkState.prototype.getAuto = function () {
        return false;
    };
    //获取视频状态 ，用该接口做一些常用控制
    gameNetWorkState.prototype.getOpenState_Video = function () {
        return false;
    };
    //获取视频标识
    gameNetWorkState.prototype.getOpenState_ShiPin_Tag = function () {
        return false;
    };
    //获取home back
    gameNetWorkState.prototype.getHomeBack = function () {
    };
    //获取强退字段
    gameNetWorkState.prototype.getGameOut = function () {
    };
    //添加小游戏回到前台的事件
    gameNetWorkState.prototype.addGameBackEvent = function () {
    };
    //游戏强退
    gameNetWorkState.prototype.setGameOut = function () {
    };
    gameNetWorkState._instance = null;
    gameNetWorkState.nextBtnClickIndex = 0; //点击下一关计数
    return gameNetWorkState;
}());
exports.default = gameNetWorkState;

cc._RF.pop();